package com.hsgene.pay.service.api.impl;

import com.hsgene.common.util.exception.CommonErrorCode;
import com.hsgene.common.util.result.ApiResult;
import com.hsgene.common.util.result.NullObject;
import com.hsgene.order.domain.v1.GeneticTestingOrder;
import com.hsgene.order.domain.v1.GeneticTestingOrderAddtionA;
import com.hsgene.order.domain.v1.GeneticTestingOrderInterchange;
import com.hsgene.pay.service.api.OrderInternalApiService;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

/**
 * @author wangbing
 * @version 1.0, 2018/10/9
 */
@Component
public class OrderInternalApiServiceImpl implements OrderInternalApiService {

    @Override
    public ApiResult<GeneticTestingOrder> getTestingOrder(String orderId) {
        return ApiResult.fail(CommonErrorCode.ORDER_SERVICE_NOT_AVAILABLE);
    }

    @Override
    public ApiResult<GeneticTestingOrderInterchange> getTestingOrderInterchange(String interchangeId) {
        return ApiResult.fail(CommonErrorCode.ORDER_SERVICE_NOT_AVAILABLE);
    }

    @Override
    public ApiResult<GeneticTestingOrderAddtionA> getTestingOrderAdditionA(String orderId) {
        return ApiResult.fail(CommonErrorCode.ORDER_SERVICE_NOT_AVAILABLE);
    }

    @Override
    public ApiResult<NullObject> payInterchangeCallBack(String interchangeId, BigDecimal amount) {
        return ApiResult.fail(CommonErrorCode.ORDER_SERVICE_NOT_AVAILABLE);
    }
}
